package com.example;

import com.example.init.InitTomcat;
import com.example.myservlet.SimpleServlet;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor;

/**
 * Hello world!
 *
 */
@Slf4j
public class App 
{
    public static void main( String[] args ) throws Exception
    {
//        ClassLoaderWeavingAdaptor classLoaderWeavingAdaptor = new ClassLoaderWeavingAdaptor();
//        classLoaderWeavingAdaptor.initialize(App.class.getClassLoader(), null);
//        ClassLoaderWeavingAdaptor.createMethodHandle("com.example.myservlet.SimpleServlet", "hello", null);

//        WeavingURLClassLoader weavingURLClassLoader = new WeavingURLClassLoader(App.class.getClassLoader());
//        SimpleServlet simpleServlet = new SimpleServlet();
//        simpleServlet.hello();

        (new InitTomcat()).startTomcat();
    }
}
